package Testing;

public class isNumber {
	public boolean isNumber(String num) {

		try {
			Integer.parseInt(num);
			return true;
		} catch (Exception e) {
			return false;
		}
	}

	public static void main(String args[])
	{
		isNumber in= new isNumber();
		System.out.println(in.isNumber("1000"));
	}
}
